package com.ucombuy.youdiangou.service;

import com.ucombuy.youdiangou.common.BusinessException;
import com.ucombuy.youdiangou.model.ShopModel;

import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by yaosheng on 2021/11/17.
 */
public interface IShopService {

    ShopModel create(ShopModel shopModel) throws BusinessException;

    ShopModel get(Integer id);

    List<ShopModel> selectAll();

    List<ShopModel> recommend(BigDecimal longitude, BigDecimal latitude);

    List<Map<String,Object>> searchGroupByTags(String keyword, Integer categoryId, String tags);

    Integer countAllShop();

    List<ShopModel> search(BigDecimal longitude,BigDecimal latitude, String keyword,Integer orderby,Integer categoryId,String tags);

    Map<String,Object> searchES(BigDecimal longitude,BigDecimal latitude, String keyword,Integer orderby,Integer categoryId,String tags) throws IOException;
}
